package com.cn.dim.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cn.dim.dao.PropDao;
import com.cn.dim.pojo.Prop;
import com.cn.dim.service.PropService;
import com.github.pagehelper.PageHelper;
@Service("propService")
public class PropServiceImpl implements PropService{
	@Resource
	PropDao propDao;
	@Override
	public List<Map<String, Object>> queryProp(Map<String, Object> m) {//根据查询条件查询角色列表，列表的每一行以键值对的形式提现；
		// TODO Auto-generated method stub
		PageHelper.startPage(Integer.valueOf(m.get("pageIndex").toString()),Integer.valueOf(m.get("pageSize").toString()),true);
		return propDao.queryProp(m);
	}
	@Override
	public List<Map<String, Object>> queryProptypeName(Map<String, Object> m) {
		// TODO Auto-generated method stub
		return propDao.queryProptypeName(m);
	}
	@Override
	public List<Map<String, Object>> queryProptype(Map<String, Object> m) {
		// TODO Auto-generated method stub
		return propDao.queryProptype(m);
	}
	@Override
	public int insertProp(Prop p) {
		// TODO Auto-generated method stub
		return propDao.insertProp(p);
	}
	@Override
	public int updateProp(Prop p) {
		// TODO Auto-generated method stub
		return propDao.updateProp(p);
	}
	@Override
	public int delProp(Map<String, Object> m) {
		// TODO Auto-generated method stub
		return propDao.delProp(m);
	}
	@Override
	public Prop queryPropById(Map<String, Object> m) {
		// TODO Auto-generated method stub
		return propDao.queryPropById(m);
	}
	@Override
	public List<Map<String, Object>> queryProptypeh5(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return propDao.queryProptypeh5(param);
	}
	@Override 
	public List<Map<String, Object>> querypropbyId(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return propDao.querypropbyId(param);
	}
	@Override
	public List<Map<String, Object>> queryproptypelistdetail(
			Map<String, Object> param) {
		// TODO Auto-generated method stub
		return propDao.queryproptypelistdetail(param);
	}
	@Override
	public List<Map<String, Object>> querypropbytypeid(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return propDao.querypropbytypeid(param);
	}
}
